﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 物料清单表
    /// </summary>
    [SugarTable("Material")]
    public class Material : Audit
    {
        /// <summary>
        /// 物料ID
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int MaterialId { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public int MaterialNode { get; set; }
        /// <summary>
        /// 物料清单主题
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string? MSubject { get; set; }
        /// <summary>
        /// 物料清单编号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string? MNumber { get; set; }
        /// <summary>
        /// 制表人员
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string? MWatchmakers { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)")]//设计长度
        public string? MRemark { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? MPName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? MPNumber { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? MPSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? MPUnit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int MQuantity { get; set; }
        /// <summary>
        /// 产品角色
        /// </summary>
        public int MProductPersonas { get; set; }
        /// <summary>
        /// 工艺流程
        /// </summary>
        public string MProcess { get; set; }
        /// <summary>
        /// 耗损率
        /// </summary>
        public decimal MWearRate { get; set; }



    }
}
